#include <stdio.h>
#include "executer/qe_vars.h"
#include "executer/qe_func.h"
#include "executer/qe_operator.h"

/*********************************/
struct q_variable f1(struct q_variable* arglist)
{
	struct q_variable tmp;
	printf("f1\n");
	return tmp;
}
struct q_variable f2(struct q_variable* arglist)
{
	struct q_variable tmp;
	printf("f2\n");
	return tmp;
}
struct q_variable f3(struct q_variable* arglist)
{
	struct q_variable tmp;
	printf("f3\n");
	return tmp;
}

/*********************************/
int main(int argc, char** argv)
{
	struct q_variable tmp;

	q_registerfunc("f1", "", f1);
	q_registerfunc("f2", "", f2);
	q_registerfunc("f3", "", f3);

	q_runfunc("f2", &tmp, NULL);
	q_runfunc("f1", &tmp, NULL);
	q_runfunc("f2", &tmp, NULL);
	q_runfunc("f3", &tmp, NULL);

	return 0;
}
